﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Resultado
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
 <script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
  
    <script>
        $(function () {

                $(".inscribir").click(function () {                
                    
                $.getJSON("<%=Url.Action("inscribir") %>"+"/"+"?ID="+c, null,
                    
                    function(Data){
                        if(Data == "ok")
                        {
                            location.reload;
                        }
                        else
                        {
                            //Mostrar Mensaje ERROR
                        }
	                });
            });
        });
	</script>

    <h2>Resultado</h2>


    Resultado:

    <style type="text/css">
		table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
		.tableizer-table th {background-color: #91C2F3; color: #FFF; font-weight: bold;}
		</style>

		<table class="tableizer-table">
		<tr class="tableizer-firstrow"><th>Tema</th><th>Fecha</th><th>Hora</th><th>Tutor</th><th>Cupos</th><th>(borrar)inscribir</th></tr>

        <%:TempData["html"] as string%>
        </table>

</asp:Content>
